
#ifndef __DRIVER_SET_PARAMETER_H
#define __DRIVER_SET_PARAMETER_H

#include "stdint.h"
#include "traj.h"

#define GS2_EN                1
#define SDS1A015_EN           0
#define TOF050F_EN            0

#define EN_BREAK_DISTANCE_CAL 0

#define CUR_ZERO_BAIS        2075
#define CUR_ZERO_ERRO_MAX    50


#define REF_IS_CUR_MAX_A     10
#define REF_VS_VOL_MAX_PU    0.577f

#define REF_SPEED_MAX_HZ        50
#define REF_SPEED_ACC_MAX_HZ_S  2

typedef enum
{
    USER_TEST_SCI=1,
    USER_TEST_CAN,
    VCU_CTRL_CAN

}ENUM_COMM_TYPE;


typedef enum
{
    THRE_FAULT   = 0,
    THRE_WARN    = 1,
    THRE_SCHMIDT = 2

}ENUM_THRE_PARAM;


typedef struct
{
    uint16_t  PolePairs;
    float32_t Rs_ohm;
    float32_t Ld_H;
    float32_t Lq_H;
    float32_t Flux_VS;

}STR_MOTOR_PARAM;


extern void parameter_init(void);

extern TRAJ_Obj vdReftraj;
extern TRAJ_Obj freqReftraj[2];

#endif

